package cc.mrbird.febs.activity.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import cc.mrbird.febs.activity.entity.Activity;
import cc.mrbird.febs.common.entity.QueryRequest;

/**
 * 活动信息表 Service接口
 *
 * @author Lord
 * @date 2020-06-06 16:11:26
 */
public interface IActivityService extends IService<Activity> {

    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param activity activity
     * @return IPage<Activity>
     */
    IPage<Activity> findActivitys(QueryRequest request, Activity activity);

    /**
     * 查询（所有）
     *
     * @param activity activity
     * @return List<Activity>
     */
    List<Activity> findActivitys(Activity activity);

    /**
     * 新增
     *
     * @param activity activity
     */
    void createActivity(Activity activity);

    /**
     * 修改
     *
     * @param activity activity
     */
    void updateActivity(Activity activity);

    /**
     * 删除
     *
     * @param activity activity
     */
    void deleteActivity(Activity activity);

    /**
     * 删除活动
     *
     * @param activityIds 活动 id数组
     */
    void deleteActivitys(String[] activityIds);
}
